package com.base.cn.platform.os.service.manage.statistics.flow;

import com.base.cn.platform.os.service.FeignAuthConfig;
import com.base.cn.platform.os.service.manage.BaseService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;
import java.util.Map;

/**
 * 终端用户使用UV占比统计接口
 *
 * @author s.li
 * @date 2019/04/29
 */
@FeignClient(name = BaseService.appName,configuration = FeignAuthConfig.class)
public interface ZStatisticsTerminalUVCountService extends BaseService {

    /**
     * 生成终端设备UV统计数据
     * @param terminalUVCountList
     * @return Map<String,Object>
     */
    @RequestMapping(contextPath + "/statistics/genTerminalUVCount")
    Map<String,Object> genTerminalUVCount(@RequestBody List<Map<String, Object>> terminalUVCountList);

    /**
     * 获取设置访问分布用户数据统计
     * @param dateQueryCondition
     * @return ZStatisticsTerminalUVCount
     */
    @RequestMapping(contextPath + "/statistics/queryTerminalUVCountData")
    Map<String,Object> queryTerminalUVCountData(@RequestBody Map<String, Object> dateQueryCondition);
}
